package com.unlcn.ils.kas.dao.model.order;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 订单在途跟踪日志明细
 * 
 * @author 罗必量
 * @since 2018-03-09
 */
@TableName("itf_order_otd_log_detail")
public class OrderOtdLogDetail extends Model<OrderOtdLogDetail> {

	private static final long serialVersionUID = 4258934328872611063L;
	/**
	 * id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	 * 订单id
	 */
	@TableField("head_id")
	private Integer headId;
	/**
	 * 系统订单号
	 */
	@TableField("sys_order_no")
	private String sysOrderNo;
	/**
	 * 跟踪时间
	 */
	@TableField("track_time")
	private Date trackTime;
	/**
	 * 所在省
	 */
	private String province;
	/**
	 * 所在市
	 */
	private String city;
	/**
	 * 所在区/县
	 */
	private String area;
	/**
	 * 详细地址
	 */
	private String address;
	/**
	 * 经度
	 */
	private BigDecimal longitude;
	/**
	 * 纬度
	 */
	private BigDecimal latitude;
	/**
	 * erp 明细 id
	 */
	private String tId;

	@TableField(exist = false)
	private String srcType;

	@TableField(exist = false)
	private String shiper;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getHeadId() {
		return headId;
	}

	public void setHeadId(Integer headId) {
		this.headId = headId;
	}

	public String getSysOrderNo() {
		return sysOrderNo;
	}

	public void setSysOrderNo(String sysOrderNo) {
		this.sysOrderNo = sysOrderNo;
	}

	public Date getTrackTime() {
		return trackTime;
	}

	public void setTrackTime(Date trackTime) {
		this.trackTime = trackTime;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public BigDecimal getLongitude() {
		return longitude;
	}

	public void setLongitude(BigDecimal longitude) {
		this.longitude = longitude;
	}

	public BigDecimal getLatitude() {
		return latitude;
	}

	public void setLatitude(BigDecimal latitude) {
		this.latitude = latitude;
	}

	public String gettId() {
		return tId;
	}

	public void settId(String tId) {
		this.tId = tId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getSrcType() {
		return srcType;
	}

	public void setSrcType(String srcType) {
		this.srcType = srcType;
	}

	public String getShiper() {
		return shiper;
	}

	public void setShiper(String shiper) {
		this.shiper = shiper;
	}

	@Override
	public String toString() {
		return "OrderOtdLogDetail [address=" + address + ", area=" + area + ", city=" + city + ", headId=" + headId
				+ ", id=" + id + ", latitude=" + latitude + ", longitude=" + longitude + ", province=" + province + ", shiper="
				+ shiper + ", srcType=" + srcType + ", sysOrderNo=" + sysOrderNo + ", tId=" + tId + ", trackTime=" + trackTime
				+ "]";
	}

}
